pip freeze > requirements.txt
pip install -r requirements.txt

pip install -i https://pypi.doubanio.com/simple Flask-SQLAlchemy==3.1.1
pip install -i https://pypi.doubanio.com/simple flask-sqlacodegen
flask-sqlacodegen --help

# AttributeError: module 'sqlalchemy' has no attribute '__all__'. Did you mean: '__file__'?
flask-sqlacodegen mysql+pymysql://root:123456@localhost:3306/web --tables tb_soft --outfile "soft.py"

# 加个 --flask 就可以了！
flask-sqlacodegen mysql+pymysql://root:123456@localhost:3306/web --tables tb_soft --outfile "soft.py" --flask

